package com.amazon.web.util;

public class ApiListResponse<T> extends ApiResponse<T> {
    private Integer total;
    private Integer pageTotal;

    public Integer getPageTotal() {
        if (total % 20== 0)
            pageTotal = total / 20;
        else
            pageTotal = total / 20 + 1;
        return pageTotal;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}
